package com.myspring.controller;

import com.myspring.service.MyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = {"/mycontroller8"})
public class MyController8 {
    @Autowired
    MyService myService;

    @RequestMapping(value = "/mymethod8/{uid}/{password}")
    public ResponseEntity<Boolean> mymethod8(@PathVariable(value = "uid") Integer uid,@PathVariable(value = "password") String password) throws  Exception{
       
        this.myService.updatePassword(uid,password);
        return new ResponseEntity<Boolean>(true, HttpStatus.OK);
    }
}
